<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="vue.js"></script>
</head>

<body>
    <div id='root'> 
        <div v-bind:title="title">hello world</div>
        <div :title="name">hello world</div>
        <input v-model="content"/>
        <div>{{content}}</div>
    </div> 

    <script>
        new Vue({
            el: '#root',  //el 挂载点，与id=root的元素绑定  
            data: {  //绑定元素的数据操作    
                title: 'this is hello world',
                name: 'wx',
                content: 'is content'
            }
        })

        /**
         *  属性绑定
         *  指令 v-bind:title 简写:title
         *  
         *  双向绑定
         *  v-model
         *  input框内数据发生改变 content数据发生改变
         *  content数据发生改变   nput框内数据发生改变   
         *  
         * 
         * */

    </script>
</body>

</html>